//
// Created by A4-28 on 2020/10/23.
//

#pragma once

#include "header.h"
#include "DataBuffer.h"

namespace WF {

    class VertexArray {

    public:
        VertexArray(std::vector<Vertex> vertices, std::vector<unsigned int> indices);
        ~VertexArray();
        uniquePtr<VertexBuffer> VBO;
        uniquePtr<ElementBuffer> EBO;

        void Bind();

        static uniquePtr<VertexArray> Create(std::vector<Vertex> vertices, std::vector<unsigned int> indices) {
            return CreateUPtr<VertexArray>(vertices, indices);
        };
    };
}





